GtkStyleSet: Make property registration take const GValues.
authorCarlos Garnacho <carlosg@gnome.org>
Sun, 11 Apr 2010 17:52:58 +0000 (19:52 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:37:01 +0000 (15:37 +0100)
gtk/gtkstyleset.c
gtk/gtkstyleset.h

index c26eb3cdbdd583b97dd5db5759cd7cd3c91fa58a..f91d3321abf102c80f3ac7d5b3736d096c45847f 100644 (file)
@@ -175,9 +175,9 @@ property_node_lookup (GQuark quark)
 
 /* Property registration functions */
 void
-gtk_style_set_register_property (const gchar *property_name,
-                                 GType        type,
-                                 GValue      *default_value)
+gtk_style_set_register_property (const gchar  *property_name,
+                                 GType         type,
+                                 const GValue *default_value)
 {
   PropertyNode *node, new = { 0 };
   GQuark quark;
index ff1b859a60e7facb887d331425d276a447f70f9a..642dd02c312b4e6778196f97921a4ca37863f710 100644 (file)
@@ -52,9 +52,9 @@ struct GtkStyleSetClass
 GType gtk_style_set_get_type (void) G_GNUC_CONST;
 
 /* Functions to register style properties */
-void gtk_style_set_register_property (const gchar *property_name,
-                                      GType        type,
-                                      GValue      *default_value);
+void     gtk_style_set_register_property (const gchar  *property_name,
+                                          GType         type,
+                                          const GValue *default_value);
 
 void gtk_style_set_register_property_color  (const gchar *property_name,
                                              GdkColor    *default_value);